#pragma once
#ifndef _ZELESTE3D_Z3D_CORE_MATH_H_
#define _ZELESTE3D_Z3D_CORE_MATH_H_

#include "../internal/cuCoreLib.h"

namespace z3d{
	namespace core{

		template<class T>
		T abs(T expr)
		{
			return (expr >= 0? expr:-expr);
		}
		uint32_t nextPower2(uint32_t val);
		bool isPower2(uint32_t x);
	};
};


#endif //_ZELESTE3D_Z3D_CORE_MATH_H_